<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="renderer" content="webkit">
<meta http-equiv="Cache-Control" content="no-siteapp" />

	<!-- 设置浏览器不缓存，做测试用 -->
	<meta http-equiv="Pragma" content="no-cache" />   
	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="Expires" content="0" />
<title>GreenLife - 主页</title>
<link rel="shortcut icon" href="favicon.ico">
<link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
<link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
<link href="css/animate.min.css" rel="stylesheet">
<link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
</head>
<body class="gray-bg">
	<div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>个人资料： <small>点击更新</small></h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                            <a class="dropdown-toggle" data-toggle="dropdown" href="form_basic.html#">
                                <i class="fa fa-wrench"></i>
                            </a>
                            <a class="close-link">
                                <i class="fa fa-times"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                        <form method="get" class="form-horizontal">
                            <div class="form-group">
                                <label  class="col-sm-2 control-label">真实姓名</label>

                                <div class="col-sm-10">
                                    <label id="realName" type="text" class="form-control"></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">登陆账号</label>

                                <div class="col-sm-10">
                                    <label id="account" type="text" class="form-control" ></label>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">昵称</label>

                                <div class="col-sm-10">
                                    <input id = "nickName" type="text" class="form-control" >
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">密码</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="password">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">手机号码</label>

                                <div class="col-sm-10">
                                    <input type="text" placeholder="提示信息" class="form-control" id="phoneNumber">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">邮箱</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="email">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">性别</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="sex">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">地址</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="address">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">QQ号码</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="qqNumber">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">个人介绍</label>

                                <div class="col-sm-10">
                                    <input type="text" class="form-control" id="introduction">
                                </div>
                            </div>
                            <div class="form-group">
                                <div class="col-sm-4 col-sm-offset-2">
                                    <button class="btn btn-primary" type="submit">保存内容</button>
                                    <button class="btn btn-white" type="submit">取消</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>

	<script src="js/jquery.min.js?v=2.1.4"></script>
	<script src="js/bootstrap.min.js?v=3.3.6"></script>
	<script src="js/plugins/metisMenu/jquery.metisMenu.js"></script>
	<script src="js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
	<script src="js/plugins/layer/layer.min.js"></script>
	<script src="js/hplus.min.js?v=4.1.0"></script>
	<script type="text/javascript" src="js/contabs.min.js"></script>
	<script src="js/plugins/pace/pace.min.js"></script>
	<script type="text/javascript" src="js/me/tools.js"></script>
	<script type="text/javascript">
		$.get("http://localhost/GreenLife/user/select.do", {
			id:GetQueryString("id")
			}, function(data, status) {
			alert(data.resultMsg);
			if(data.result==true){
				alert(data.data.account);
				$("#realName").text(data.data.realName);
				$("#account").text(data.data.account);
				$("#nickName").attr("value",data.data.nickName);
				$("#password").attr("value",data.data.password);
				$("#phoneNumber").attr("value",data.data.phoneNumber);
				$("#email").attr("value",data.data.email);
				$("#sex").attr("value",data.data.sex);
				$("#address").attr("value",data.data.address);
				$("#qqNumber").attr("value",data.data.qqNumber);
				$("#introduction").attr("value",data.data.introduction);
			}
		});
	</script>
</body>
</html>